package com.baiduspring.dubbo.service.specialcolumn;

import com.baiduspring.elasticsearch.operation.QueryInput;
import com.baiduspring.elasticsearch.operation.QueryResultsOutput;
import com.baiduspring.vo.BlogVO;
import org.elasticsearch.index.query.QueryBuilder;

import java.util.Optional;

public interface BlogService {
    /**
     * 将文章信息保存到ES数据库中
     *
     * @param blogVO 参数
     */
    void create(BlogVO blogVO);

    Optional<QueryResultsOutput> queryAndPagging(QueryInput input);

    Optional<QueryResultsOutput> queryMultipleConditions(QueryBuilder queryBuilder);
}
